package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Sport;

import java.util.List;

public interface KnowledgeBaseService {

    void addSportList(List<Sport> list);

    //分页查询
    PageInfo findPage(QueryPageBean queryPageBean);

    //添加单个运动
    void addOneSport(Sport sport);

    Sport findById(Integer id);

    void update(Sport sport);

    void deleteById(Integer id);
}
